mudbox::Preferences::Integer Class Reference
#include <preferences.h>
List of all
members.
Detailed Description
This class holds a simple integer preference.
This class can be used by a plugin to declare a single integer
preference. The object should be declared as a global variable or
as a static member variable. If a valid name is given to the object
it will autoatically appear in the preferences dialog, and its
value will be automatically saved and restored when mudbox
quits/restarts. Example:
Preferences::Integer g_iMaxlevel( "Maximum level", "Render", 4 );
Constructor & Destructor Documentation
mudbox::Preferences::Integer::Integer |
( |
const QString
& |
sName, |
|
|
const QString & |
sCategory, |
|
|
unsigned int |
iDefaultValue |
|
) |
|
|
|
- Parameters:
-
sName |
Name of the item, which will appear in the preferences
dialog. |
sCategory |
Category of the item, which it belongs to in the preferences
dialog. This can be an empty string. |
iDefaultValue |
Default value of the item. This is only used the first time
when the preference is used, in other cases the value of the
preferences will be restored from the general mudbox preference
file. |
|
Member Function Documentation
mudbox::Preferences::Integer::operator unsigned int |
( |
void |
|
) |
const |
|
Member Data Documentation
mudbox::Preferences::Integer
mudbox::Preferences::Integer mudbox::Preferences::Integer
mudbox::Preferences::Integer mudbox::Preferences::Integer
mudbox::Preferences::Integer mudbox::Preferences::Integer
mudbox::Preferences::Integer mudbox::Preferences::Integer
mudbox::Preferences::Integer
mudbox::Preferences::Integer
mudbox::Preferences::Integer mudbox::Preferences::Integer
mudbox::Preferences::Integer mudbox::Preferences::Integer
mudbox::Preferences::Integer mudbox::Preferences::Integer
mudbox::Preferences::Integer mudbox::Preferences::Integer
mudbox::Preferences::Integer